#SingleInstance, Force
SendMode Input
SetWorkingDir, %A_ScriptDir%
; tool for window


Window_Split(x, y, w, h) {
    ; move & size current window(without taskbar)
    ; Window_Split(0, 1/2, 1, 1/2)

    SysGet , MonitorWorkArea, MonitorWorkArea, 1
    workAreaHeight = % MonitorWorkAreaBottom
    workAreaWidth = % MonitorWorkAreaRight

    WinRestore A
    WinMove, A, , workAreaWidth *x, workAreaHeight *y, workAreaWidth *w, workAreaHeight *h
}



Window_MinMaxStatus() {
    ; Max-0/Restore-1
    WinGet, MinMaxStatus, MinMax, A
    Return MinMaxStatus
}



Window_MaxOrRestore() {
    ; Maximize/Restore Window

    If(Window_MinMaxStatus() == 0) {
        WinMaximize, A
    }
    Else {
        WinRestore, A
    }
}
